package cz.data.domain.masterdata.model.entity;

import cz.data.common.base.DataFlowBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 主数据模型
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "masterdata_model", resultMap = "BaseResultMap")
public class ModelEntity extends DataFlowBaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty("数据源ID")
    private String sourceId;
    @ApiModelProperty("模型名称")
    private String modelName;
    @ApiModelProperty("逻辑表")
    private String modelLogicTable;
    @ApiModelProperty("物理表")
    private String modelPhysicalTable;
    @ApiModelProperty(value = "是否建模", notes = "0否，1是")
    private String isSync;

    @TableField(exist = false)
    private List<ModelColumnEntity> modelColumns;
}
